<!doctype html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>史册注册</title>
    {% load static %}
    <link rel="stylesheet" href="{% static 'css/register1.css' %}">
</head>
<body>
<div class="container">
    <h1>注册</h1>
    <form action="/polls/register/" method="post">
        {#            post方法要防止网站攻击要加{% csrf_token %}，action后面也要加斜杠/#}
        {% csrf_token %}
        <div class="form-group">
            <label>用户名：</label>
            <input type="text" name="user" placeholder="请输入用户名">
        </div>
        <div class="form-group">
            <label>密 码：</label>
            <input type="text" name="pwd" placeholder="请输入密码">
        </div>
        <div class="form-group">
            <label>验证码：</label>
            <div class=" captcha-group">
                <input type="text" name="verify_code" placeholder="请输入验证码">
                <div>
                    <span>{{ code }}</span>
                </div>

            </div>
        </div>
        <input type="submit" value="注 册" id="sub">
    </form>
</div>
</body>
</html>